/* 通用布局 */
.dynamic-detail {
  padding: 16px;
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto;
}
/* 顶部导航栏 */
.top-bar {
  margin-bottom: 12px;
}
.back-btn {
  background: none;
  border: none;
  color: #007bff;
  font-size: 16px;
  cursor: pointer;
}
/* 用户头像与名称 */
.header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}
/* 动态的标题和内容 */
.title {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 6px;
}
.content {
  margin-bottom: 16px;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}
/* 图片轮播 */
.swiper-wrapper {
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.image-container {
  position: relative;
  cursor: zoom-in;
}
.big-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
}
.image-indicator {
  position: absolute;
  top: 10px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffffdd;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 50%;
}
.prev {
  left: 12px;
}
.next {
  right: 12px;
}
/* 底部话题和统计信息 */
.footer {
  margin-top: 16px;
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.topic {
  background: #f0f2f5;
  color: #007bff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
}
.stats {
  font-size: 14px;
  color: #666;
}

/* 评论输入框 */
.comment-input-box {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.comment-textarea {
  width: 100%;
  height: 80px;
  resize: none;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
}

.comment-submit {
  margin-top: 10px;
  text-align: right;
}

.comment-submit button {
  padding: 6px 14px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.comment-submit button:hover {
  background-color: #0056b3;
}
/* 回复编辑框 */
.link-reply__main-box {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 700px; /* 限制宽度与 home-main 匹配 */
  padding: 12px 16px;
  background-color: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.link-reply__input-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.link-reply__editor {
  outline: none;
  min-height: 30px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  padding-right: 120px;
  transition: all 0.3s ease;
}

.link-reply__editor.expanded {
  min-height: 80px;
  padding-right: 120px;
}

.link-reply__placeholder {
  position: absolute;
  left: 14px;
  top: 12px;
  color: #aaa;
  pointer-events: none;
  font-size: 14px;
}

.link-reply__operation-box {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.link-reply__operation-item {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.link-reply__operation-item:hover {
  color: #007bff;
}

.link-reply__operation-desc {
  margin-left: 4px;
  font-size: 12px;
}
.reply-preview {
  background: #f5f7f9;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.preview-content {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.reply-target {
  color: #007bff;
  font-weight: 500;
  white-space: nowrap;
}

.original-comment {
  color: #666;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  flex: 1;
}

.cancel-reply {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
  margin-left: 8px;
}

.like-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}

.link-reply__operation-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.comment-title-wrapper {
  padding: 8px 12px;
  border-radius: 6px;
  margin: 24px 0 12px;
  background-color: rgba(250, 250, 250, 0.6); /* 浅灰+透明感 */
  backdrop-filter: blur(2px); /* 可选：让背景有毛玻璃效果 */
}

.comment-title {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.follow-btn {
  margin-left: auto;
  background-color: black;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 14px;
}

.follow-btn.followed {
  background-color: #e0e0e0;
  color: #333;
  cursor: default;
}

.custom-dialog-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.custom-dialog {
  background-color: #fff;
  color: #000;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  min-width: 280px;
  text-align: center;
}

.dialog-text {
  font-size: 16px;
  margin-bottom: 20px;
}

.dialog-buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.confirm-btn,
.cancel-btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

.confirm-btn {
  background-color: #000;
  color: #fff;
}

.cancel-btn {
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
}

.cancel-btn:hover {
  background-color: #f0f0f0;
}

.confirm-btn:hover {
  opacity: 0.9;
}
.more-menu-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
}
.more-btn {
  font-size: 20px;
  cursor: pointer;
  color: #999;
}
.top-bar {
  position: relative; /* 保证右上角按钮定位生效 */
}
.custom-context-menu {
  position: fixed;
  z-index: 9999;
}
